package _14作业.t2;

import java.util.HashMap;
import java.util.Scanner;

public class Demo1 {
    public static void main(String[] args) {
        HashMap<String,String> map=new HashMap<>();
        Scanner sc = new Scanner(System.in);
        while (map.size()<5){
            System.out.println("请输入信息：");
            String s = sc.nextLine();

            String[] split = s.split(",");
            map.put(split[0],split[1]);
        }
        System.out.println(map);
    }
}

